package com.example.orders.feign;

import com.example.orders.entity.User;
import com.example.orders.entity.vo.R;
import com.example.orders.exception.MyFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.Serializable;

@FeignClient(value = "myusers",fallbackFactory = MyFeignFallBack.class)
public interface MyOpenFeign {

    @GetMapping("user/{id}")
    public User selectOne(@PathVariable("id") Serializable id) ;

}
